/// @description Insert description here
// You can write your code in this editor



















// Inherit the parent event
event_inherited();

if triger =5{alarm[0] = 2}
if  object_exists(o_Hero)&& point_distance(x, y, o_Hero.x , o_Hero.y)<500{
triger += 1
}
if point_distance(x, y, Main.x , Main.y)>500
{
	alarm[1] = 1
	triger = 0
}
if instance_exists(o_LaserBullet)&& distance_to_object(o_LaserBullet)<100 {least = instance_nearest(x,y,o_LaserBullet)}